import com.jfinal.config.Constants;
import com.jfinal.config.Handlers;
import com.jfinal.config.Interceptors;
import com.jfinal.config.JFinalConfig;
import com.jfinal.config.Plugins;
import com.jfinal.config.Routes;
import com.jfinal.server.undertow.UndertowServer;
import com.jfinal.template.Engine;

import controller.IndexController;

/**
 * DemoConfig
 */

public class DemoConfig extends JFinalConfig {
public static void main(String[] args) {
    UndertowServer.start(DemoConfig.class, 8080, true);
}
    @Override
    public void configConstant(Constants me) {
        // TODO Auto-generated method stub
me.setDevMode(true);
    }

    @Override
    public void configRoute(Routes me) {
        // TODO Auto-generated method stub
        // me.add(new SwaggerRoutes());
        // me.add(new ApiRoutes());//配置API访问路由
		me.add(new SwaggerRoutes());//接口文档路径
        // me.scan("controller.");
        // me.add("/",IndexController.class);
        me.add("/", IndexController.class);//系统功能路径
        
    }

    @Override
    public void configEngine(Engine me) {
        // TODO Auto-generated method stub

    }

    @Override
    public void configPlugin(Plugins me) {
        // TODO Auto-generated method stub

    }

    @Override
    public void configInterceptor(Interceptors me) {
        // TODO Auto-generated method stub

    }

    @Override
    public void configHandler(Handlers me) {
        // TODO Auto-generated method stub

    }

    
}